You can use the XCO CLI to add, delete, and show the static IP addresses for management sub interfaces.
efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv4-address> |--ip2 <ipv4-address> ]
Here the syntax shows that ip1 and ip2 will accept only with IPv4 address.
Note
The Mix mode configuration with ip1 as IPv4 address and ip2 as IPv6 address or vice versa is not supported.efa mgmt subinterface staticip add –subinterface sub1 --ip1 10.10.10.1/24 –ip2 10.10.10.2/24
efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv6-address> |--ip2 <ipv6-address> ]
Here the syntax shows that ip1 and ip2 will accept only with IPv6 address.
Note
The Mix mode configuration with ip1 as IPv4 address and ip2 as IPv6 address or vice versa is not supported.efa mgmt subinterface staticip add –subinterface sub1 --ip1 2003::165/64 –ip2 2003::166/64
efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv4-address-1> | --ip2 <ipv4-address-2> ] --ip3 <ipv6-address-1> | --ip4 <ipv6-address-2>]
Here the syntax shows that ip1 and ip2 addresses will be available only to IPv4 addresses, and that ip3 and ip4 addresses will be available only to IPv6 addresses.
To set up an optional static IPv6 address, ensure that the sub-interface to which it is assigned already has an IPv6 address configured. All other assumptions and validations remain consistent with those used for static IPv4 addresses in the IPv4 stack.
efa mgmt subinterface staticip add –subinterface sub1 --ip1 10.10.10.1/24 --ip2 10.10.10.2/24 –ip3 2000::1/64 --ip4 2000::2/64
efa mgmt subinterface staticip remove --subinterface <int-id>
efa mgmt subinterface staticip show